package com.whenjun.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.whenjun.entity.AuthPermissionAccount;
import com.whenjun.mapper.AuthPermissionAccountMapper;
import com.whenjun.service.IAuthPermissionAccountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author whenjun
 * @since 2023-11-15
 */
@Service
public class AuthPermissionAccountServiceImpl extends ServiceImpl<AuthPermissionAccountMapper, AuthPermissionAccount> implements IAuthPermissionAccountService {

    @Override
    @Transactional
    public List<String> selectPermissionsByAccountId(String accountId) {
        List<String> permissionCodes = getBaseMapper().selectPermissionsByAccountId(accountId);
        return permissionCodes;
    }
}
